package org.mogoo.simple.socket2;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Fang
 * Date: 2012-08-21
 * Time: 20:00
 * Email: dongfang@mogoo.org
 */
class RequestBody implements Serializable
{
    private int clientID;
    private int destinationID;
    private RequestType requestType;
    private String messageBody;
    private Date timeStamp;

    public int getClientID()
    {
        return clientID;
    }

    public void setClientID(int clientID)
    {
        this.clientID = clientID;
    }

    public int getDestinationID()
    {
        return destinationID;
    }

    public void setDestinationID(int destinationID)
    {
        this.destinationID = destinationID;
    }

    public RequestType getRequestType()
    {
        return requestType;
    }

    public void setRequestType(RequestType requestType)
    {
        this.requestType = requestType;
    }

    public String getMessageBody()
    {
        return messageBody;
    }

    public void setMessageBody(String messageBody)
    {
        this.messageBody = messageBody;
    }

    public Date getTimeStamp()
    {
        return timeStamp;
    }

    public void setTimeStamp(Date timeStamp)
    {
        this.timeStamp = timeStamp;
    }
}

enum RequestType
{
    message,
    login,
    logout;
}


